package com.sqx.modules.scFollow.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sqx.modules.app.entity.UserEntity;
import com.sqx.modules.goods.entity.Goods;
import com.sqx.modules.goods.vo.GoodsVo;
import com.sqx.modules.scFollow.entity.ScFollow;
import com.sqx.modules.trends.entity.Trends;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ScFollowDao extends BaseMapper<ScFollow> {



    int getMyFollowCount(Long userId);

    int getMyFollowGoodsCount(Long userId);

    Page<Goods> getFollowGoodsList(@Param("pages") Page<GoodsVo> pages,
                                   @Param("userId") Long userId,
                                   @Param("follow") ScFollow follow);

    List<ScFollow> selectByUserId(Long userId);

    List<ScFollow> selectByFanId(Long userId);

    Page<Trends> selectByMyCollect(@Param("pages") Page<GoodsVo> pages,
                                   @Param("userId") Long userId,
                                   @Param("follow") ScFollow follow);

    int selectCountByClassify4(@Param("userId") Long userId);

    int selectByWantCount(@Param("userId")Long userId);
}
